// pages/framework/index.js
// 1.获取实例
const app = getApp()
console.log(app);

Page({
  data:{
    nickname:wx.getStorageSync('nickname') ,
    avatarUrl:wx.getStorageSync('avatarUrl') 
  },
  onShow() {
    this.setData({
      nickname:app.nickname,
      avatarUrl:app.avatarUrl
    })
  }
  
})